﻿/*******************************************************************************
 * AAEngine
 * Copyright (c) 2010 Mike Jarosch
 *
 * Original source PushButton Engine:
 * Copyright (C) 2009 PushButton Labs, LLC
 * For more information see http://www.pushbuttonengine.com
 *
 * This file is licensed under the terms of the MIT license, which is included
 * in the "MIT License.txt" file at the root directory of this SDK.
 ******************************************************************************/

namespace AAEngine.Engine.Core
{
    /// <summary>
    /// The TemplateEvent is used by the TemplateManager to dispatch information about the loaded
    /// status of groups
    /// </summary>
    public class TemplateEvent : Event
    {
        /// <summary>
        /// This event is dispatched by the TemplateManager when a group's entities have been loaded.
        /// </summary>
        public static readonly string GROUP_LOADED_EVENT = "AAEngine.Engine.Core.TemplateEvent.GROUP_LOADED_EVENT";

        /// <summary>
        /// The object name associated with this event.
        /// </summary>
        public string Name { get; set; }

        public TemplateEvent(string type, string name)
            : base(type)
        {
            Name = name;
        }
    }
}
